﻿using Abp.Runtime.Validation;
using KDS.Mes.Dto;
using System;

namespace KDS.Mes.Mes.Plans.Dtos
{
    /// <summary>
    /// 计划信息查询Dto
    /// </summary>
    public class GetPlanInput : PagedAndSortedInputDto, IShouldNormalize
    {
        //DOTO:在这里增加查询参数

        /// <summary>
        /// 模糊查询参数
        /// </summary>
        public string FilterText { get; set; }

        public string LineId { get; set; }

        public string PlanModeId { get; set; }

        public int? IsOnline01 { get; set; }
        public int? IsOnline02 { get; set; }
        public int? IsOnline03 { get; set; }
        public int? IsOnline04 { get; set; }
        public int? IsOnline05 { get; set; }
        public int? IsOnline06 { get; set; }
        public int? IsOnline07 { get; set; }
        public int? IsOnline08 { get; set; }
        public int? IsOnline09 { get; set; }
        public int? IsOnline10 { get; set; }

        public int[] SeatPositions { get; set; }
        //public string SeatPositions { get; set; }

        public DateTime? PlanDate { get; set; }

        /// <summary>
        /// 用于排序的默认值
        /// </summary>
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "Id";
            }
        }
    }
}